package com.oragraph.data.sourcedata;

import java.util.Hashtable;
import java.util.Vector;

import com.oragraph.data.Node;

public class DummySourceData {
	
	public static Vector<String> users;
	public static Vector<String> SIDs;
	public static Vector<String> IPs;
	
	static {
		users=new Vector<String>();
		SIDs=new Vector<String>();
		IPs=new Vector<String>();
		
		for (int i=1; i<4; i++) SIDs.add("SID_"+i);
		for (int i=10; i<40; i++) users.add("USER_"+i);		
		for (int i=100; i<400; i++) IPs.add("IP_"+i);
	}		
	
	public static boolean match(String node1, String node2) {
		int p1=node1.indexOf("_");
		int p2=node2.indexOf("_");
		int n1=Integer.parseInt(node1.substring(p1+1));
		int n2=Integer.parseInt(node2.substring(p2+1));
		return ((n2/10==n1) || (n2/100==n1));
	}
	

}
